﻿using UnityEditor;
using UnityEngine;
using UnityEngine.UI;

namespace CQCFrameWork.Tools.RewriteUIComponent.Editor
{
    public class ResetImageCom : AddDefaultCanvas
    {
        [MenuItem("GameObject/UI/Image", false)]
        static void CreatImage(MenuCommand menuCommand)
        {
            GameObject go = new GameObject("Image");
            Image img = go.AddComponent<Image>();
            img.raycastTarget = false;
            PlaceUIElementRoot(go, menuCommand);
        }
    }
}